package com.ruoyi.jhc.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.jhc.mapper.JhcFgdlMapper;
import com.ruoyi.jhc.domain.JhcFgdl;
import com.ruoyi.jhc.service.IJhcFgdlService;

/**
 * 废钢电炉进耗存录入Service业务层处理
 * 
 * @author key
 * @date 2022-09-29
 */
@Service
public class JhcFgdlServiceImpl implements IJhcFgdlService 
{
    @Autowired
    private JhcFgdlMapper jhcFgdlMapper;

    /**
     * 查询废钢电炉进耗存录入
     * 
     * @param cDate 废钢电炉进耗存录入主键
     * @return 废钢电炉进耗存录入
     */
    @Override
    public JhcFgdl selectJhcFgdlByCDate(String cDate)
    {
        return jhcFgdlMapper.selectJhcFgdlByCDate(cDate);
    }

    /**
     * 查询废钢电炉进耗存录入列表
     * 
     * @param jhcFgdl 废钢电炉进耗存录入
     * @return 废钢电炉进耗存录入
     */
    @Override
    public List<JhcFgdl> selectJhcFgdlList(JhcFgdl jhcFgdl)
    {
        return jhcFgdlMapper.selectJhcFgdlList(jhcFgdl);
    }

    /**
     * 新增废钢电炉进耗存录入
     * 
     * @param jhcFgdl 废钢电炉进耗存录入
     * @return 结果
     */
    @Override
    public int insertJhcFgdl(JhcFgdl jhcFgdl)
    {

        return jhcFgdlMapper.insertJhcFgdl(jhcFgdl);
    }

    /**
     * 修改废钢电炉进耗存录入
     * 
     * @param jhcFgdl 废钢电炉进耗存录入
     * @return 结果
     */
    @Override
    public int updateJhcFgdl(JhcFgdl jhcFgdl)
    {
        return jhcFgdlMapper.updateJhcFgdl(jhcFgdl);
    }

    /**
     * 批量删除废钢电炉进耗存录入
     * 
     * @param cDates 需要删除的废钢电炉进耗存录入主键
     * @return 结果
     */
    @Override
    public int deleteJhcFgdlByCDates(String[] cDates)
    {
        return jhcFgdlMapper.deleteJhcFgdlByCDates(cDates);
    }

    /**
     * 删除废钢电炉进耗存录入信息
     * 
     * @param cDate 废钢电炉进耗存录入主键
     * @return 结果
     */
    @Override
    public int deleteJhcFgdlByCDate(String cDate)
    {
        return jhcFgdlMapper.deleteJhcFgdlByCDate(cDate);
    }
}
